package com.ruicar.afs.cloud.workflow.api.dto.afsprocess.request;

import lombok.Data;

import java.util.List;

@Data
public class UserOnlineRequest {
    List<UserInfo> UserInfos;
    private String serviceId;
    private String bizDataId;
    private String nodeId;
    private String afsFlowKey;

    @Data
    public static class UserInfo {
        public UserInfo(String userName, long availableTaskCount) {
            this.userName = userName;
            this.availableTaskCount = availableTaskCount;
        }

        public UserInfo() {
        }

        String userName;
        //可用任务量
        long availableTaskCount = -1;
        long weight;
        long totWeight;
        long taskCount;
    }
}

